/*
 * EnrollContract.java
 * business
 *
 * Created by chentao on 2017/4/21.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.main.discovery.enroll;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.data.bean.PayWay;
import com.yidiandao.business.data.event.RefreshEnrollResultStateEvent;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;

import java.util.List;

public interface EnrollContract {

    interface Presenter extends BasePresenter {

        void enroll();

        void onPayWayChanged(PayWay payWay);

        void onPersonCountChanged(int count);

        List<DisplayListItem> getPayWays();

        String getRecId();
    }

    interface View extends BaseView<Presenter> {

        String getUserName();

        String getPhoneNumber();

        int getPersonNumber();

        void showFailedDialog(String message);

        void showSuccessDialog();

        void setContent(String enrollTitle);

        void setMaxPerson(int maxPerson);

        void refreshEnrollMoney(float enrollMoney);

        void setChoosePayWayLayoutVisibility(boolean flag);

        void refreshPayWay(PayWay payWay);

        void toOnLinePayActivity(String url);

        void onEventMainThread(RefreshEnrollResultStateEvent event);
    }
}
